# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-stix2
_pkgname=cti-python-stix2
pkgver=3.0.1
pkgrel=5
pkgdesc='Produce and consume STIX 2 JSON content.'
url='https://github.com/oasis-open/cti-python-stix2'
license=('BSD')
arch=('any')
depends=('python' 'python-dateutil' 'python-pytz' 'python-requests'
         'python-simplejson' 'python-six' 'python-stix2-patterns')
makedepends=('git' 'python-setuptools' 'python-pip' 'python-wheel')
source=("https://github.com/oasis-open/cti-python-stix2/archive/v$pkgver.tar.gz")
sha512sums=('f3dd3330ae951d55e64fa64997fe28f2271186828a60f75ef89580d373befd491a096fa53e9ffdb4447e87cc3690c2187ef5074baa9b14303c9854388a427bdf')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

